import { ExtractPropTypes } from 'vue';
import { createPropsResolver } from '../../dynamic-resolver';
import { schemaMapper } from './schema/schema-mapper';
import { schemaResolver } from './schema/schema-resolver';
import formSchema from './schema/form.schema.json';

export const responseFormProps = {
    customClass: { type: String, default: '' }
} as Record<string, any>;

export type ResponseFormPropsType = ExtractPropTypes<typeof responseFormProps>;

export const formPropsResolver = createPropsResolver<ResponseFormPropsType>(responseFormProps, formSchema, schemaMapper, schemaResolver);
